/***********************
 * Inquiry Submissions Panel
 */
AIR2.Inquiry.Submissions = function() {
    return new AIR2.UI.Panel({
        title: AIR2.Inquiry.INQDATA.radix.inq_title,
        storeData: AIR2.Inquiry.QRESPDATA,
        colspan: 2,
        tpl: new Ext.XTemplate(
            '<h4>Created by {[AIR2.Format.userName(AIR2.Inquiry.INQDATA.radix.CreUser, true)]}</a></h4> on Aug. 8, 2010 at 7:34 a.m.' +
            '{AIR2.Inquiry.INQDATA.radix.inq_desc}' +
            '<div id="excerpt-picker">' +
            'Select question to excerpt:' +
            '<select onChange="AIR2.Inquiry.filterResp(this);">' +
            '<tpl for="AIR2.Inquiry.QUESDATA.radix">' +
            '<option value="{ques_uuid}" <tpl if="ques_uuid == AIR2.Inquiry.QSELECT">selected</tpl>>{[Ext.util.Format.ellipsis(values.ques_value, 96, true)]}</option>' +
            '</tpl>' +
            '</select>' +
            '</div>' +
            '<table>' +
            '<tpl for=".">' +
            '<tr>' +
            '<td>{#}</td>' +
            '<td>{[AIR2.Format.sourceFullName(values, true)]}</td>' +
            '<td>{[AIR2.Inquiry.submDT(values.srs_date)]}</td>' +
            '<td>{[AIR2.Inquiry.sourceCityState(values)]}</td>' +
            '<td>Credential</td>' +
            '</tr>' +
            '<tr>' +
            '<td></td>' +
            '<td colspan="4">{[Ext.util.Format.ellipsis(values.sr_orig_value, 256, true)]}</td>' +
            '</tr>' +
            '</tpl>' +
            '</table>'
        )
    });
}